package com.xiongtian.springframework.test.module10.event;

import com.xiongtian.springframework.context.ApplicationListener;

import java.util.Date;

/**
 * @Author: xiongtian
 * @CreateTime: 2025-04-14  11:22
 * @Version: 1.0
 * @Description: TODO
 */

public class CustomEventListener implements ApplicationListener<CustomEvent> {
    @Override
    public void onApplicationEvent(CustomEvent event) {
        System.out.println("收到：" + event.getSource() + "消息;时间： " + new Date());
        System.out.println("消息：" + event.getId() + ":" + event.getMessage());
    }
}
